<template>
    <div class="header">
        <div class="header-left">
            <div class="iconfont">&#xe624;</div>
        </div>
        <div class="header-input">
            <span class="iconfont">&#xe632;</span>
            输入城市/景点/游玩主题
        </div>
        <router-link to="/city">
        <div class="header-right">
            {{this.$store.state.city}}
            <span class="iconfont">&#xe64a;</span>
        </div>
        </router-link>
    </div>
</template>

<script>
export default {
  name: 'HomeHeader'
}
</script>

<style >
.header{
    display: flex;
    line-height: 43px;
    background: #00bcd4;
    color: aliceblue;
}

.header-left{
    width: 45px;
    float: left;
    text-align: center;
    font-size: 8px;
}

.header-input{
    flex: 1;
    background: #fff;
    border-radius: 10px;
    height: 32px;
    line-height: 32px;
    margin-top: 6px;
    padding-left: 4px;
    color: #ccc;
}

.header-right{
    min-width: 44px;
    padding: 0 5px;
    float: right;
    text-align: center;
    color: #fff;
}

</style>
